package com.kiven.collections;

import java.util.Collections;
import java.util.HashSet;
import java.util.Set;

/**
 * 								Collection 
 * 							|		|		|
 * 						  List		Set		Queue
 * 					  |		|	  |     |  |	 |		
 * 			ArrayList  LinkedList HashSet TreeSet PriorityQueue 
 * 
 * 
 * @author Administrator
 *
 */
public class CollectionsTest {

	/**
	 * Set HashSet LinkedHashSet HashMap LinkedHashMap 
	 * 散列码的查找和排序方式
	 * 
	 * 用LinkedList 可以很好的实现Stack与Queue的功能
	 * 
	 */
	public static void main(String[] args) {
		A a = new A();
		A b = new A();
		
		Set set = new HashSet();
		Collections.addAll(set, a,b);
		
		System.out.println(set.size());
	}

}

class A {
	
}
